package com.qqcommon;

import java.io.Serializable;

/**
 * @author wty
 * @date 2022/10/25 10:36
 * 表示一个用户信息
 * 要序列化保证兼容性，所以要实现Serializable
 */
public class User implements Serializable {
    private static final long serialVersionUID = 1L;
    private String userID;
    private String password;

    public User(String userID, String password) {
        this.userID = userID;
        this.password = password;
    }

    public String getUserID() {
        return userID;
    }

    public void setUserID(String userID) {
        this.userID = userID;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "User{" +
                "userID=" + userID +
                ", password=" + password +
                '}';
    }
}
